/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package jobscheduling.gui;

import info.monitorenter.gui.chart.ITrace2D;
import info.monitorenter.gui.chart.ITracePoint2D;
import info.monitorenter.gui.chart.TracePoint2D;
import info.monitorenter.gui.chart.io.ADataCollector;
import java.util.concurrent.Semaphore;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author bursant
 */
public class Collector extends ADataCollector {
    private ITrace2D _trace;
    private long _latency;
    private TracePoint2D _point;
    
    public Collector(info.monitorenter.gui.chart.ITrace2D trace, long latency){
        super(trace, latency);
        _point = new TracePoint2D(0.0, 0.0);
    }
    
    public void putValue(int x, int y){
        _point = new TracePoint2D((double)x, (double)y);
    }
    
    @Override
    public ITracePoint2D collectData() {
        return _point;
    }
}
